package com.mune.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mune.common.utils.PageUtils;
import com.mune.gulimall.product.entity.AttrEntity;
import com.mune.gulimall.product.entity.ProductAttrValueEntity;
import com.mune.gulimall.product.vo.AttrGroupRelationVo;
import com.mune.gulimall.product.vo.AttrRespVo;
import com.mune.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author mune
 * @email 1356008591@qq.com
 * @date 2020-07-28 20:48:31
 */
public interface AttrService extends IService<AttrEntity> {

  PageUtils queryPage(Map<String, Object> params);

  void saveAttr(AttrVo attr);

  PageUtils queryBaseAttrPage(Map<String, Object> params, Long categoryId, String type);

  AttrRespVo getAttrInfo(Long attrId);

  void updateAttr(AttrVo attr);

  List<AttrEntity> getRelationAttr(Long attrGroupId);

  void deleteRelation(AttrGroupRelationVo[] vos);

  PageUtils getNoRelationAttr(Long attrGroupId, Map<String, Object> params);

  List<Long> selectSearchAttrs(List<Long> attrIds);
}

